﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Pp.UI.Models.HomeViewModel>" %>

<%@ Import Namespace="Pp.Core.Extentions" %>
<%@ Import Namespace="Pp.UI.Models" %>
<%@ Import Namespace="Pp.Dto" %>
<%@ Import Namespace="Pp.Globalization" %>
<%--<asp:Content ID="Content4" ContentPlaceHolderID="BannerContent" runat="server">
    <div id="gallery">
        <div id="gallery-left-box">
            <h1>
                <%=Res.Message_Share_Your_Idea.FormatWith("<br/>")%>
            </h1>
            <ul class="doors">
                <%if (Request.IsAuthenticated)
                  {%>
                <li><a href="<%=Url.Action("New","Project") %>">
                    <%=Res.Label_Share_Project%></a></li>
                <%}
                  else
                  {%>
                <li><a href="<%=Url.Action("Register","Account") %>">
                    <%=Res.Label_Register %></a></li>
                <li><a href="<%=Url.Action("Logon","Account") %>">
                    <%=Res.Label_LogOn %></a></li>
                <%
                  }%>
            </ul>
        </div>

    </div>
</asp:Content>--%>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleWall" runat="server">
    <div id="tabs">
        <ul>
            <li>
                <li><a href="#lastShared">
                   
                    <%=(string.IsNullOrEmpty(ViewBag.CategoryName) ? "" : ViewBag.CategoryName + " - ") + Res.Label_ProjectList%></a> </li>
            </li>
        </ul>
        <div id="lastShared">
            <%foreach (var projectDto in Model.LastProjects.List)
              {%>
            <%Html.RenderPartial("ProjectView", projectDto);%>
            <%} %>
            <% if (Model.LastProjects.List.Count > 0)
               {%>
            <%Html.RenderPartial("Pager", Model.LastProjects.PageInfo); %>
            <%}
               else
               {%>
            <p style="text-align: center; font-size: 13pt">
                <%=Res.Message_Project_No_Found%></p>
            <p style="text-align: center; font-size: 13pt">
                <span>
                    <%=Res.Message_Sahare_First_Project.FormatWith("<a href='/Project/New'>", "</a>.")%></span></p>
            <%}%>
        </div>
    </div>
    <script>
        $(document).ready(function () {
            $("#tabs").tabs();
            $(".ui-widget-content").css("overflow", "hidden");
        });
    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftWall" runat="server">
    <div id="sidebar">
        <%if (User.Identity.IsAuthenticated)
          {%>
        <h6>
            <%=Res.Label_Member_Info %>
        </h6>
        <%   Html.RenderPartial("UserCardRead", Model.UserInfo);
          } %>
        <%Html.RenderAction("GetCategories", "Home"); %>
        <%Html.RenderAction("LastComments", "Home"); %>
    </div>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="RightWall">
    <h6><%=Res.Label_Adwords %></h6>
    <img src="/Content/Images/Reklam/190x190.jpg" />
</asp:Content>
